﻿<controls:ChildWindow 
           x:Class="AppLab.Views.MobileBasicInfo.MobileBasicInfoWindow"
           xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
           xmlns:sdk="http://schemas.microsoft.com/winfx/2006/xaml/presentation/sdk"
           xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
           xmlns:controls="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls" xmlns:local="clr-namespace:AppLab.Controls"
           xmlns:web="clr-namespace:AppLab.Web"
           xmlns:toolkit="http://schemas.microsoft.com/winfx/2006/xaml/presentation/toolkit" 
          xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
           xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
           mc:Ignorable="d"     
           d:DataContext="{d:DesignInstance Type=web:MobileBasicInfoData}"
           Title="手机终端录入" Height="363" Width="555">
    <Grid x:Name="LayoutRoot" Margin="2" >
        <toolkit:BusyIndicator x:Name="busyIndicatorLoad" Grid.RowSpan="2"  BusyContent="{Binding Path=ApplicationStrings.BusyIndicatorLoad, Source={StaticResource ResourceWrapper}}"></toolkit:BusyIndicator>
        <toolkit:BusyIndicator x:Name="busyIndicator" BusyContent="{Binding Path=ApplicationStrings.BusyIndicatorRegisteringUser, Source={StaticResource ResourceWrapper}}"
                             IsBusy="{Binding IsRegistering}">
            <StackPanel x:Name="ContentStackPanel" Style="{StaticResource ContentStackPanelStyle}">
                <!--<Grid>
                     <sdk:Label Height="25" Name="lbInputWrongInfo" VerticalAlignment="Top" HorizontalAlignment="Left" Foreground="Red"/>
                </Grid>-->
                <TextBlock Name="TipsForWrongInfo" VerticalAlignment="Top" FontSize="13" Foreground="Red"/>
                
                <Grid Name="DetailInfo" HorizontalAlignment="Left" VerticalAlignment="Top" Height="292" Width="530" Margin="0,5,0,0" >
                    <sdk:Label Height="25" Name="lbMbBrand" Content="品牌:" Margin="25,0,0,0" VerticalAlignment="Top" HorizontalAlignment="Left"/>
                    <ComboBox Height="25" Name="cbMbBrand" Width="150" Margin="80,0,0,0" VerticalAlignment="Top" HorizontalAlignment="Left" SelectionChanged="cbMbBrand_SelectionChanged" ></ComboBox>
                    <!--<HyperlinkButton Name="hyNewMBBrand" Content="添加品牌？" Margin="230,10,0,0" VerticalAlignment="Top" HorizontalAlignment="Left" Click="hyNewMBBrand_Click"></HyperlinkButton>-->
                    
                    <sdk:Label Height="25" Name="lbMbInfoTime" Content="上市时间:" Margin="270,0,0,0" VerticalAlignment="Top" HorizontalAlignment="Left"/>
                    <sdk:DatePicker x:Name="dpInfoTime" Height="25" Width="160" Margin="330,0,0,0" VerticalAlignment="Top"/>

                    <sdk:Label Height="25" Name="lbMbType" Content="型号:" Margin="25,40,0,0" VerticalAlignment="Top" HorizontalAlignment="Left"/>
                    <TextBox Height="25" Name="tbMbType" Width="150" Margin="80,40,0,0" VerticalAlignment="Top" HorizontalAlignment="Left" InputMethod.IsInputMethodEnabled="False" MaxLength="16" TextChanged="tbMbType_TextChanged" />
                    <sdk:Label Height="25" Name="lbMbCategory" Content="手机类别:" Margin="0,80,0,0" VerticalAlignment="Top" HorizontalAlignment="Left"/>
                    <ComboBox Height="25" Name="cbMbCategory" Width="150" Margin="80,80,0,0" VerticalAlignment="Top" HorizontalAlignment="Left"></ComboBox>
                    <sdk:Label Height="25" Name="lbMbOS" Content="系统:" Margin="25,120,0,0" VerticalAlignment="Top" HorizontalAlignment="Left"/>
                    <ComboBox Height="25" Name="cbMbOS"  Width="150" Margin="80,120,0,0" VerticalAlignment="Top" HorizontalAlignment="Left"></ComboBox>
                    <sdk:Label Height="25" Name="lbMbPlatform" Content="平台:" Margin="25,160,0,0" VerticalAlignment="Top" HorizontalAlignment="Left"/>
                    <ComboBox Height="25" Name="cbMbPlatform"  Width="150" Margin="80,160,0,0" VerticalAlignment="Top" HorizontalAlignment="Left"></ComboBox>
                    <sdk:Label Height="25" Name="lbMbIs3G" Content="支持3G？" Margin="5,200,0,0" VerticalAlignment="Top" HorizontalAlignment="Left"/>
                    <Grid>
                        <RadioButton Name="cbMbIs3G1" Height="25" Margin="80,200,0,0" Content="支持" HorizontalAlignment="Left" VerticalAlignment="Top"></RadioButton>
                        <RadioButton Name="cbMbIs3G2" Height="25" Margin="140,200,0,0" Content="不支持" HorizontalAlignment="Left" VerticalAlignment="Top"></RadioButton>
                        <RadioButton Name="cbMbIs3G3" Height="25" Margin="200,200,0,0" Content="未知" HorizontalAlignment="Left" VerticalAlignment="Top" ></RadioButton>
                    </Grid>
                    <sdk:Label Height="25" Name="lbMbIsTouch" Content="支持触摸？" Margin="0,240,0,0" VerticalAlignment="Top" HorizontalAlignment="Left"/>
                    <Grid Margin="0,0,-13,0">
                        <RadioButton Name="cbMbIsTouch1" Height="25" Margin="80,240,0,0" Content="支持" VerticalAlignment="Top" HorizontalAlignment="Left"></RadioButton>
                        <RadioButton Name="cbMbIsTouch2" Height="25" Margin="140,240,0,0" Content="不支持" VerticalAlignment="Top" HorizontalAlignment="Left"></RadioButton>
                        <RadioButton Name="cbMbIsTouch3" Height="25" Margin="200,240,0,0" Content="未知" VerticalAlignment="Top" HorizontalAlignment="Left"></RadioButton>
                    </Grid>
                    <sdk:Label Height="25" Name="lbMbStreamMedia" Content="支持流媒体？" Margin="0,270,0,0" VerticalAlignment="Top" HorizontalAlignment="Left"/>
                    <Grid Height="295" HorizontalAlignment="Left" Margin="0,0,0,-3" Width="521">
                        <Grid.RowDefinitions>
                            <RowDefinition Height="90*" />
                            <RowDefinition Height="205*" />
                        </Grid.RowDefinitions>
                        <RadioButton Name="cbMbStreamMedia1" Height="25" Margin="80,182,0,0" Content="支持" VerticalAlignment="Top" Grid.Row="1" HorizontalAlignment="Left"></RadioButton>
                        <RadioButton Name="cbMbStreamMedia2" Height="25" Margin="140,182,0,0" Content="不支持" VerticalAlignment="Top" Grid.Row="1" HorizontalAlignment="Left"></RadioButton>
                        <RadioButton Name="cbMbStreamMedia3" Height="25" Margin="200,182,0,0" Content="未知" VerticalAlignment="Top" Grid.Row="1" HorizontalAlignment="Left"></RadioButton>
                    </Grid>
                    <sdk:Label Height="25" Name="lbMbCPU" Content="CPU Size(Hz):" Margin="245,40,0,0" VerticalAlignment="Top" HorizontalAlignment="Left"/>
                    <ComboBox Height="25" Name="cbMbCPU"  Width="150" Margin="350,40,0,0" VerticalAlignment="Top" HorizontalAlignment="Left"></ComboBox>
                    <sdk:Label Height="25" Name="lbMbOutwardType" Content="外观:" Margin="295,80,193,0" VerticalAlignment="Top" HorizontalAlignment="Left"/>
                    <ComboBox  Height="25" Name="cbMbOutwardType" Margin="350,80,0,0" VerticalAlignment="Top" HorizontalAlignment="Left" Width="150"></ComboBox>
                    <sdk:Label Height="25" Name="lbMbScreenSize" Content="屏幕尺寸:" Margin="270,120,0,0" VerticalAlignment="Top" HorizontalAlignment="Left"/>
                    <ComboBox Height="25" Name="cbMbScreenSize"  Width="150" Margin="350,120,0,0" VerticalAlignment="Top" HorizontalAlignment="Left"></ComboBox>
                    <sdk:Label Height="25" Name="lbMbResolution" Content="分辨率:" Margin="283,160,0,0" VerticalAlignment="Top" HorizontalAlignment="Left"/>
                    <ComboBox Height="25" Name="cbMbResolution"  Width="150" Margin="350,160,0,0" VerticalAlignment="Top" HorizontalAlignment="Left"></ComboBox>
                    <sdk:Label Height="25" Name="lbMbPrince" Content="价格(元):" Margin="275,200,0,0" VerticalAlignment="Top" HorizontalAlignment="Left"/>
                    <TextBox Height="25" Name="tbMbPrince" Width="150" Margin="350,200,0,0" VerticalAlignment="Top" HorizontalAlignment="Left" TextAlignment="Right" MaxLength="8" KeyDown="tbMbPrince_KeyDown" InputMethod.IsInputMethodEnabled="False" />
                     
                    <Button x:Name="CancelButton" Content="取消" Click="CancelButton_Click" Width="75" Height="23" HorizontalAlignment="Right" Margin="0,120,0,0" Grid.Row="1"  VerticalAlignment="Bottom" />
                    <Button x:Name="OKButton" Content="提交" Click="OKButton_Click" Width="75" Height="23" HorizontalAlignment="Right" Margin="0,120,79,0" Grid.Row="1" VerticalAlignment="Bottom" />
                </Grid>
            </StackPanel>
        </toolkit:BusyIndicator>
    </Grid>
</controls:ChildWindow>